<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/date/datepicker.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script src="${staticServer}/inc/js/datepicker.js"></script>
<script src="${staticServer}/js/web/system_reserve_stat.js?1.0"></script>
<script>

var selectMsg = function(){
	var startTime = $("#start_date").val();
	var endTime = $("#end_date").val();
	window.location.href=encodeURI("${contextPath}/index/system_keyword_stat.htm?startTime="+startTime+"&endTime="+endTime);
}

function starquery(type)
{
	if(type==0)
	{
		var sdate = $("#start_date").val();
		var edate = $("#end_date").val();
		var param = [];
		if(!empty(sdate)) param.push("sdate=" + sdate);
		if(!empty(edate)) param.push("edate=" + edate);
	
		location.href = "?" + param.join("&");
	}
	else
	{
		location.href = "?";
	}
}
</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li></li>
			<li>&gt;</li>
			<li>咨询师业务管理</li>
			<li>&gt;</li>
			<li class="current"></li>
		</ul>
	</div>
	<div id="container">
		<div id="title"></div>
		<table class="form_table">
			<tr>
				<td><label><b>查询条件：</b></label><label for="start_date">起始日期：</label>
				<input type="text" name="start_date" id="start_date" size="15" value="<#if client??>${client.sTime}</#if>" rel="DATE::Y-m-d" /> 
				<label for="end_date">终止日期：</label> 
				<input type="text" name="end_date" id="end_date" size="15" value="<#if client??>${client.eTime}</#if>" rel="DATE::Y-m-d" /> 
				<input type="button" value=" 查 询 " onclick="selectMsg()" />
			</tr>
		</table>
		<table id="tb_keyword">
			<tbody><tr class="fields">
				<th width="300">来源渠道</th>
				<th>关键词</th>
				<th width="150">客户个数</th>
			</tr>
			<#if list??>
				<#list list as list>
				<tr class="even_row">
					<th rowspan="1">${list.name}</th>
					<td>${list.keyword}</td>
					<td align="center">${list.total}</td>
				</tr>
				</#list>
			</#if>
			
		</table>
	</div>
</body>
</html>